package com.ruoyi.roommanagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.roommanagement.mapper.RoommanagementMapper;
import com.ruoyi.roommanagement.domain.Roommanagement;
import com.ruoyi.roommanagement.service.IRoommanagementService;

/**
 * 房间管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-10
 */
@Service
public class RoommanagementServiceImpl implements IRoommanagementService 
{
    @Autowired
    private RoommanagementMapper roommanagementMapper;

    /**
     * 查询房间管理
     * 
     * @param roomId 房间管理主键
     * @return 房间管理
     */
    @Override
    public Roommanagement selectRoommanagementByRoomId(Long roomId)
    {
        return roommanagementMapper.selectRoommanagementByRoomId(roomId);
    }

    /**
     * 查询房间管理列表
     * 
     * @param roommanagement 房间管理
     * @return 房间管理
     */
    @Override
    public List<Roommanagement> selectRoommanagementList(Roommanagement roommanagement)
    {
        return roommanagementMapper.selectRoommanagementList(roommanagement);
    }

    /**
     * 新增房间管理
     * 
     * @param roommanagement 房间管理
     * @return 结果
     */
    @Override
    public int insertRoommanagement(Roommanagement roommanagement)
    {
        return roommanagementMapper.insertRoommanagement(roommanagement);
    }

    /**
     * 修改房间管理
     * 
     * @param roommanagement 房间管理
     * @return 结果
     */
    @Override
    public int updateRoommanagement(Roommanagement roommanagement)
    {
        return roommanagementMapper.updateRoommanagement(roommanagement);
    }

    /**
     * 批量删除房间管理
     * 
     * @param roomIds 需要删除的房间管理主键
     * @return 结果
     */
    @Override
    public int deleteRoommanagementByRoomIds(Long[] roomIds)
    {
        return roommanagementMapper.deleteRoommanagementByRoomIds(roomIds);
    }

    /**
     * 删除房间管理信息
     * 
     * @param roomId 房间管理主键
     * @return 结果
     */
    @Override
    public int deleteRoommanagementByRoomId(Long roomId)
    {
        return roommanagementMapper.deleteRoommanagementByRoomId(roomId);
    }
}
